FROM registry.cn-hangzhou.aliyuncs.com/hcf_res/mytomcat:centos-jdk8-tomcat8.5

# 复制项目
RUN [ "rm","-rf"," /opt/apache-tomcat-8.5.66/webapps/" ]

COPY ROOT.war /opt/apache-tomcat-8.5.66/webapps
COPY pom.xml /opt/apache-tomcat-8.5.66/bin

ENV TOMCAT_HOME=/opt/apache-tomcat-8.5.66
ENV PATH=$PATH:$TOMCAT_HOME/bin

WORKDIR $TOMCAT_HOME/bin
# 启动命令
EXPOSE 8080
CMD  ["sh","catalina.sh", "run"]
